/*
 * @Author: liuzehai
 * @Date: 2021-05-10 11:18:49
 * @LastEditTime: 2021-05-11 16:36:29
 * @LastEditors: liuzehai
 * @FilePath: /Card-to-payh5/src/api/index.js
 * @Description: 由liuzehai创建！
 */

import request from '@/plugins/axios';

// 账号密码登陆接口
export const login = (data) => request({
  url: 'auth/auth/login',
  method: 'POST',
  data
});

// 获取用户详情
export const getUserInfo = (params) => request({
  url: 'auth/auth/userInfo',
  params,
});

// 修改密码
export const updatePwd = (data) => request({
  url: `upms/user/updatePwd`,
  method: 'POST',
  data
});